package Queue;

import LinkedList.LinkedList;

public class LinkedListQueue<E> implements Queue<E>{

    private LinkedList<E> linkedList;

    public LinkedListQueue(){
        this.linkedList = new LinkedList<E>();
    }

    @Override
    public void enqueue(E e) {
        linkedList.addLast(e);
    }

    @Override
    public E dequeue() {
       return linkedList.removeFirst();
    }

    @Override
    public E getFront() {
        return linkedList.getFirst();
    }

    @Override
    public int getSize() {
        return linkedList.getSize();
    }

    @Override
    public boolean isEmpty() {
        return linkedList.isEmpty();
    }

    @Override
    public int getCapacity() {
        return 0;
    }
}
